Set Hostname
2015/04/24 |
This is the example for setting Hostname of your system.
|
|
[1] | Change hostname with a commnad (but if rebooting, it will be back). |
# change hostname root@ubuntu:~# hostname dlp root@ubuntu:~# dlp # just changed |
[2] | Change hostname permanently. |
root@ubuntu:~#
hostnamectl set-hostname dlp # display settings root@ubuntu:~# Static hostname: dlp Icon name: computer-vm Chassis: vm Machine ID: 88f58c3910fee96e8ba80808b3230b4e Boot ID: 51b14fd0cfac4cc8bd5ab4980fb22395 Virtualization: kvm Operating System: Ubuntu 15.04 Kernel: Linux 3.19.0-15-generic Architecture: x86-64 |